﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Interfaceimplementation
{
    class Program
    {
        static void Main(string[] args)
        {
            Iprogrammer x = new Person();
            Print(x);
            Idriver y = new Person();
            Print(y);
            Person z = new Person();
            Print((Iprogrammer)z);
            x.Experience = 10;
           
           
            
        }
        static void Print(Iprogrammer p)
        {
            Console.WriteLine(p.Experience);
        }

        static void Print(Idriver p)
        {
            Console.WriteLine(p.Name);
        }

    }
}
